package com.gem.day08.factory;

/**抽象饮料工厂*/
public abstract class AbstractDrinksFactory {

	abstract Coffeee[] createCoffeee();

	abstract Tea createTea();

	abstract Sodas createSodas();
}

class ChinaDrinksFactory extends AbstractDrinksFactory {

	@Override
	Coffeee[] createCoffeee() {
		return new Coffeee[] { new Lattee(), new Cappuccinoo() };
	}

	@Override
	Tea createTea() {
		return new MilkTea();
	}

	@Override
	Sodas createSodas() {
		return null;
	}
}

class AmericaDrinksFactory extends AbstractDrinksFactory {

	@Override
	Coffeee[] createCoffeee() {
		return new Coffeee[] { new Lattee() };
	}

	@Override
	Tea createTea() {
		return null;
	}

	@Override
	Sodas createSodas() {
		return new CocaCola();
	}
}
